/**
 * Author:runlin。tang.
 * Creation Time: 2016/6/29
 * Description:
 *              dhcp渲染页面
 */
define(['jquery','underscore','backbone','../../../common/js/lib/text!../../../tpl/dhcp.tpl','../m/getData'],
    function ($,_,Backbone,dhcp,getData) {
    function indexV(wan_ip,wan_mask,wan_dns){
        $('.webApp-content').html(_.template(dhcp));
        $(".wan_ip").html(wan_ip);
        $(".wan_mask").html(wan_mask);
        $(".wan_dns").html(wan_dns);
        $(".dhcp-click").click(function(){
            getData();
        });
    }

    return indexV;
});